package edu.hawaii.solardecathlon.page.aquapond;

import org.apache.wicket.ResourceReference;
import org.apache.wicket.markup.html.image.Image;
import org.apache.wicket.markup.html.link.Link;
import edu.hawaii.solardecathlon.page.BasePage;

/**
 * The application aquaponics page.
 * 
 * @author Arthur Lee
 */
public class AquaponicsPage extends BasePage {

  /** Support serialization. */
  private static final long serialVersionUID = 1L;

  /**
   * The Aquaponics page for this application.
   */
  public AquaponicsPage() {
    //Information about the plant system in aquaponics.
    Link<String> plantsLink = new Link<String>("PlantsLink") {

      /** Support serialization. */
      private static final long serialVersionUID = 1L;

      /** Upon clicking this link, go to PlantsPage. */
      @Override
      public void onClick() {
        setResponsePage(new PlantsPage());
      }
    };
    plantsLink.add(new Image("PlantsButton", new ResourceReference(AquaponicsPage.class,
        "../images/plantsyellow.png")));
    add(plantsLink);
    
    //Information about the fish system in aquaponics.
    Link<String> fishLink = new Link<String>("FishLink") {

      /** Support serialization. */
      private static final long serialVersionUID = 1L;

      /** Upon clicking this link, go to FishTankPage. */
      @Override
      public void onClick() {
        setResponsePage(new FishPage());
      }
    };
    fishLink.add(new Image("FishButton", new ResourceReference(AquaponicsPage.class,
        "../images/fishGreen.png")));
    add(fishLink);

  }
}
